//
//  SearchSuggestionCityModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/19.
//

#import "SearchSuggestionCityModel.h"

@implementation SearchSuggestionCityModel

+ (NSArray<SearchSuggestionCityModel *> *)createPoiResultModelWithCitys:(NSArray<AMapCity *> *)arrays {
    NSMutableArray<SearchSuggestionCityModel *> *models = [NSMutableArray array];
    for (AMapCity *mapCity in arrays) {
        SearchSuggestionCityModel *model = [[SearchSuggestionCityModel alloc] init];
        model.cityName = mapCity.city;
        model.cityCode = mapCity.citycode;
        model.adCode = mapCity.adcode;
        model.suggestionNum = mapCity.num;
        [models addObject:model];
    }
    return models;
}


@end
